import time
from time import sleep

from base.base import Base



class select_up(Base):
    # 查询产品并设置支付方式
    def account_select_up(self,account_no,account_no2):
        self.switch_node("pay_product_info_page")
        self.click('pay_product_manage')
        self.logger.info('点击支付管理')
        self.click('pay_product_info_btn')
        self.logger.info('点击支付产品信息')
        self.send_keys("input_field",account_no)
        self.logger.info('输入支付产品名称')
        self.click("select_button")
        self.logger.info('点击搜索')
        self.click('set_up_payment_methods2')
        self.logger.info('设置支付方式')
        self.click('set_up_payment_methods2')
        self.logger.info('设置支付方式')
        self.send_keys('payment_fees', account_no2)
        self.logger.info('输入支付费率')
        self.click('pay_product_add_submit')
        self.logger.info('点击提交')